

/* 

   here overloading is implemented 

*/

/* Base class and Derived class has same method name with different argument
*/
class Base
{
	public void display(int a)
	{
		System.out.print("\n I am in display function in  base class \n");
	}

	


}

class Dervied extends Base 
{
	
	
	public void display()
	{
		System.out.print("\n I am in display function dervied class\n ");
	}
	
}

public class OverloadingDemo
{
	public static void main(String args[])
	{
		int a=0;
		Dervied d = new Dervied();
		d.display();
		d.display(a);
	
		
	}
}
